home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Apple Guide / Engineering / RenoDB Library / RenoData / RenoDataTMPL.r < prev    next >
Encoding:
Text File  |  1994-06-07  |  11.7 KB  |  537 lines  |  [TEXT/MPS ]

  1. // Copyright ©1993 Apple Computer, Inc. All rights reserved.
  2. // Author: John R. Powers, III and Matt Powers
  3. // Date:    12-Apr-93
  4.  
  5. /*************************************************************************
  6.  
  7. 20-Jan-02    moved TMPL resources from RenoData.r file.
  8. 26-Jan-92    updated with Universal Panel objects.
  9. 04-Feb-92    added Coach's hBnd and chlk templates.
  10. 05-Feb-92    added kIndexScope
  11. 17-Feb-92    set default control items to window font, not system font.
  12. 28-Feb-92    add kResEventLabel and kResMakeSureLabel
  13. 20-Mar-92    change kResTopic string parameter to integer
  14. 24-Mar-92    add kResHot
  15. 30-Mar-92    add kResOptBtn
  16. 13-Apr-92    add bringTargetToFront field in kStartupScope
  17. 14-Apr-92    add fields to kResStartupScope
  18. 17-Apr-92    add Button id field to kResTopic
  19. 20-Apr-92    add kResFormat
  20. 24-Apr-92    remove kTopicScopeLabel
  21.             revise kAreasScopeLabel and kIndexScopeLabel
  22.             add kResHeaderScopeLabel and kResTopicLLabel
  23.             remove kResCCnumLabel, kResCCnameLabel, and kResCCrenameLabel
  24. 04-May-92    add kRenoMondoLabel
  25. 08-May-92    remove kRenoMondoLabel
  26.             fix labeling bug in kResCtrlItemLabel
  27.             revise kResTopicLabel
  28. 12-May-92    add kResCoachMarkLabel
  29.             remove kResHeaderLabel
  30. 22-May-92    add kResContextLabel
  31. 24-May-92    add quietRenoStat to startup
  32. 11-Jun-92    revise kStartupScope, kResTopic, and kResCondition
  33.             add kResRenoBtn and kResPreWinBtn
  34. 24-Jun-92    add balloon string index to kResRenoBtn and kResPreWinBtn
  35.             add optional key and optional string to kResEvent.
  36. 15-Jul-92    add message target to kStartupScope (acSU)
  37. 24-Jul-92    add target to kResContext.
  38. 09-Oct-92    added new RenoDB resource types.
  39.             change "moveable" to "align" in kResPreWinBtn.
  40.             fix pxCA and acSU field labels to keep AppleGlot happy.
  41.             relabeled pfFA field from Font ID to FOND ID.
  42.             change 'TMPL' definition from string(4) to literal longint.
  43. 29-Jan-93    Add kVersionInfoLabel.
  44.             Update templates (see comments in RenoDataTypes.r.)
  45. 08-Feb-93    Make all template resources purgeable.
  46. 24-Feb-93    Added Go Start Button (GSB) to acPT TMPL button text.
  47. 12-Apr-93    Add invisible bit to kResKeyDumpLabel.
  48. 15-Apr-93    Added the filler word and the invisible word to kAreaScope
  49.             and kIndexScope templates.
  50. 24-May-93    Added the template for data handler mapping resources
  51.  
  52. 05-Oct-93 1.1d1e10 
  53. <2.09> JRP    Add kResSTxtJustLabel.
  54.             Add DBScript and DBRegion to TMPL 1021 (kDataHeaderTypeLabel)
  55. 22-Oct-93 1.1d2     <2.10> PVC    kResSTxtJustLabel -> kResSTxtAlignLabel
  56. 14-May-94 1.2b15e1     <3.01> PVC    Add YOMI autosort bit to startupprefs resource.
  57. 04-Jun-94 1.2b17e2     <3.02> PVC    Remove extra 'chlk' TMPL resource.
  58.  
  59. *************************************************************************/
  60.  
  61. #ifndef __RENODATATMPL__
  62. #define __RENODATATMPL__
  63.  
  64.         // ResEdit Template
  65.  
  66. type 'TMPL' {
  67.     array fieldArray {
  68.         pstring;
  69.         literal longint;
  70.     };
  71. };
  72.  
  73. resource 'TMPL' (128, kSliderScopeLabel, purgeable) {
  74.     {
  75.         "No. markers", 'OCNT',
  76.         "*****", 'LSTC',
  77.             "Marker loc.", 'DWRD',
  78.             "Type select", 'PSTR',
  79.         "*****", 'LSTE'
  80.     }
  81. };
  82.  
  83. // 129 is not used.
  84.  
  85. resource 'TMPL' (130, kAreasScopeLabel, purgeable) {
  86.     {
  87.         "No.Keys", 'OCNT',
  88.         "*****", 'LSTC',
  89.             "Topic key", 'PSTR',
  90.             "",    'AWRD',
  91.             "Filler", 'DWRD',
  92.             "No.topics", 'OCNT',
  93.             "*****", 'LSTC',
  94.             "Header Id", 'DBYT',
  95.             "Topic rank", 'DBYT',
  96.             "TopicL Id", 'DWRD',
  97.             "(reserved)", 'DBYT',
  98.             "(reserved)", 'DBYT',
  99.             "*****", 'LSTE',
  100.         "*****", 'LSTE'
  101.     }
  102. };
  103.  
  104. resource 'TMPL' (131, kStartupScopeLabel, purgeable) {
  105.     {
  106.                         //        AccWin (0) or PreWin topic id
  107.         "0=AccWin \nor PreWin Id", 'DWRD',
  108.                         //        Startup view
  109.         "If AccWin,\nStartup view", 'DWRD',
  110.                         //        Reserved for future use.
  111.         "reserved1", 'HBYT',
  112.         "reserved", 'BBIT',
  113.         "reserved", 'BBIT',
  114.         "reserved", 'BBIT',
  115.         "reserved", 'BBIT',
  116.         "reserved", 'BBIT',
  117.         "reserved", 'BBIT',
  118.         "reserved", 'BBIT',
  119.         "Disable Autosort (YOMI)", 'BBIT',
  120.                         //        0=open PreWin at lower-left, 1=center.
  121.         "0=lower-left \n1=center", 'DWRD',
  122.                         //        1=quietRenoStat, 0=normal
  123.         "0=send msgs \n1=no msgs", 'DWRD',
  124.                         //        Reserved for future use.
  125.         "reserved", 'DWRD',
  126.                         //        Target signature for messages
  127.         "Msg target", 'TNAM',
  128.                         //        The Look For prefs
  129.         "LookFor String", 'PSTR',
  130.         "",    'AWRD'
  131.     }
  132. };
  133.  
  134. resource 'TMPL' (132, kIndexScopeLabel, purgeable) {
  135.     {
  136.         "No.Keys", 'OCNT',
  137.         "*****", 'LSTC',
  138.             "Topic key", 'PSTR',
  139.             "",    'AWRD',
  140.             "Invisible", 'DWRD',
  141.             "No.Topics", 'OCNT',
  142.             "*****", 'LSTC',
  143.                 "Header index", 'DBYT',
  144.                 "Topic rank", 'DBYT',
  145.                 "TopicL Id", 'DWRD',
  146.                 "(reserved)", 'DBYT',
  147.                 "(reserved)", 'DBYT',
  148.             "*****", 'LSTE',
  149.         "*****", 'LSTE'
  150.     }
  151. };
  152.  
  153. // resource 'TMPL' (133, kResHeaderLabel, purgeable) removed - 1.0d1e23.
  154.  
  155.         // ResEdit template for TopicL resource
  156.  
  157. resource 'TMPL' (134, kResTopicLLabel, purgeable) {
  158.     {
  159.         "acPT Id", 'DWRD',
  160.         "Text", 'PSTR';
  161.         "",    'AWRD';
  162.     }
  163. };
  164.  
  165.         // ResEdit templates for CC data
  166.  
  167. resource 'TMPL' (135, "hBnd", purgeable) {
  168.     {
  169.         "Help version", 'DWRD';
  170.         "Bundle type", 'TNAM';
  171.         "ID of type", 'DWRD';
  172.         "Index number", 'DWRD';
  173.     }
  174. };
  175.  
  176. resource 'TMPL' (137, kResCoachMarkLabel, purgeable) {
  177.     {
  178.         "Target", 'TNAM';
  179.         "Command", 'TNAM';
  180.         "No. of keys", 'OCNT';
  181.         "*****", 'LSTC';
  182.             "Key", 'TNAM';
  183.             "Parameter", 'PSTR';
  184.         "*****", 'LSTE'
  185.     }
  186. };
  187.  
  188. // resource 'TMPL' (3001, kResCCnumLabel, purgeable) removed - 1.0d1e21.
  189.  
  190. // resource 'TMPL' (3002, kResCCnameLabel, purgeable) removed - 1.0d1e21.
  191.  
  192. // resource 'TMPL' (3003, kResCCrenameLabel, purgeable) removed - 1.0d1e21.
  193.  
  194.         // ResEdit template for Topic "script" resource
  195.  
  196. resource 'TMPL' (1001, kResTopicLabel, purgeable) {
  197.     {
  198.         "Target", 'TNAM';
  199.         "Button Id\n0=none\n-1=Default\n200=Huh?\n201=GSB", 'DWRD';
  200.         "Button Id\n0=none\n-1=Default\n200=Huh?\n201=GSB", 'DWRD';
  201.         "Button Id\n0=none\n-1=Default\n200=Huh?\n201=GSB", 'DWRD';
  202.         "Min.height\n0=none", 'DWRD';
  203.         "Max.height\n0=none", 'DWRD';
  204.         "Title TEXT ID", 'DWRD';
  205.         "reserved", 'DWRD';
  206.         "reserved", 'DWRD';
  207.         "reserved", 'DWRD';
  208.         "Number of entries", 'OCNT';
  209.         "*****", 'LSTC';
  210.             "Entry type", 'TNAM';
  211.             "Entry Id", 'DLNG';
  212.         "*****", 'LSTE'
  213.     }
  214. };
  215.  
  216.         // ResEdit template for Universal Panel resource
  217.  
  218. resource 'TMPL' (1002, kResPanelUnivALabel, purgeable) {
  219.     {
  220.         "No.objects", 'OCNT';
  221.         "*****", 'LSTC';
  222.             "Object type", 'TNAM';
  223.             "Object Id", 'DWRD';
  224.         "*****", 'LSTE'
  225.     }
  226. };
  227.  
  228.                     // ResEdit templates for Panel objects
  229.  
  230.  
  231.         // ResEdit templates for Text item resources
  232.  
  233. resource 'TMPL' (1003, kResSTxtLabel, purgeable) {
  234.     {
  235.         "TEXT/styl Id", 'DWRD';
  236.         "Top", 'DWRD';
  237.         "Left", 'DWRD';
  238.         "Bottom", 'DWRD';
  239.         "Right", 'DWRD';
  240.     }
  241. };
  242.  
  243.         // ResEdit template for Graphic item resource
  244.  
  245. resource 'TMPL' (1004, kResGraphicLabel, purgeable) {
  246.     {
  247.         "PICT Id", 'DWRD';
  248.         "Top", 'DWRD';
  249.         "Left", 'DWRD';
  250.     }
  251. };
  252.  
  253.         // Movie item resource
  254.  
  255. resource 'TMPL' (1005, kResMovieLabel, purgeable) {
  256.     {
  257.         "Top", 'DWRD';
  258.         "Left", 'DWRD';
  259.         "File", 'PSTR';
  260.         "", 'AWRD';
  261.     }
  262. };
  263.  
  264.         // Movie with Controller item resource
  265.  
  266. // resource 'TMPL' (1006, kResMovieCLabel, purgeable)    removed - 1.0a3
  267.  
  268.         // Ctrl item resource
  269.  
  270. resource 'TMPL' (1007, kResCtrlItemLabel, purgeable) {
  271.     {
  272.         "Type\n(PB=8,CB=9,\nRB=10)", 'DWRD';
  273.         "0=active\n255=not", 'DWRD';
  274.         "0=no check\n1=checked", 'DWRD';
  275.         "Top", 'DWRD';
  276.         "Left", 'DWRD';
  277.         "Bottom", 'DWRD';
  278.         "Right", 'DWRD';
  279.         "Action Id", 'DWRD';
  280.         "Title", 'PSTR';
  281.         "", 'AWRD';
  282.     }
  283. };
  284.  
  285.         // Condition resource
  286.  
  287. resource 'TMPL' (1008, kResConditionLabel, purgeable) {
  288.     {
  289.         "Not?(0=N,1=Y)", 'DWRD';
  290.         "1=Update\n0=Don't", 'DWRD';
  291.         "Type", 'TNAM';
  292.         "Id", 'DWRD';
  293.         "Logic\n(None=0,\nOR=1,AND=2)", 'DWRD';
  294.         "Not?(0=N,1=Y)", 'DWRD';
  295.         "1=Update\n0=Don't", 'DWRD';
  296.         "Type", 'TNAM';
  297.         "Id", 'DWRD';
  298.     }
  299. };
  300.  
  301.         // Make-Sure resource
  302.  
  303. resource 'TMPL' (1009, kResMakeSureLabel, purgeable) {
  304.     {
  305.         "Condition Id", 'DWRD';
  306.         "Oops Topic Id", 'DWRD';
  307.     }
  308. };
  309.  
  310.         // Prompt item resource
  311.  
  312. resource 'TMPL' (1010, kResPromptLabel, purgeable) {
  313.     {
  314.         "Beginning Id", 'DWRD';
  315.         "Middle Id", 'DWRD';
  316.         "End Id", 'DWRD';
  317.         "Choice Id", 'DWRD';
  318.     }
  319. };
  320.  
  321.         // Apple Event
  322.  
  323. resource 'TMPL' (1011, kResEventLabel, purgeable) {
  324.     {
  325.         "Target", 'TNAM';
  326.         "Class", 'TNAM';
  327.         "Event Id", 'TNAM';
  328.         "Opt.integer", 'DWRD';
  329.         "Opt.key", 'TNAM';
  330.         "Opt.data", 'PSTR';
  331.         "", 'AWRD';
  332.     }
  333. };
  334.  
  335.         // Hot panel area
  336.  
  337. resource 'TMPL' (1012, kResHotLabel, purgeable) {
  338.     {
  339.         "Top", 'DWRD';
  340.         "Left", 'DWRD';
  341.         "Bottom", 'DWRD';
  342.         "Right", 'DWRD';
  343.         "Action Id", 'DWRD';
  344.     }
  345. };
  346.  
  347. // resource 'TMPL' (1013, kResOptBtnLabel, purgeable)  removed - 1.0d1e26
  348.  
  349.         // ResEdit template for format resource
  350.  
  351. resource 'TMPL' (1014, kResFormatLabel, purgeable) {
  352.     {
  353.         "Justify", 'DWRD';
  354.         "Face", 'DWRD';
  355.         "Size", 'DWRD';
  356.         "Top", 'DWRD';
  357.         "Left", 'DWRD';
  358.         "Bottom", 'DWRD';
  359.         "Right", 'DWRD';
  360.         "Font name", 'PSTR';
  361.         "", 'AWRD';
  362.     }
  363. };
  364.  
  365.         // ResEdit template for context resource
  366.  
  367. resource 'TMPL' (1015, kResContextLabel, purgeable) {
  368.     {
  369.         "Target", 'TNAM';
  370.         "Test Id", 'TNAM';
  371.         "Param A1", 'DLNG';
  372.         "Param A2", 'DLNG';
  373.         "Param B", 'DLNG';
  374.         "Name B", 'PSTR';
  375.         "", 'AWRD',
  376.         "Param C", 'DLNG';
  377.         "Name C", 'PSTR';
  378.         "", 'AWRD',
  379.     }
  380. };
  381.  
  382.         // ResEdit template for Reno Button
  383.  
  384. resource 'TMPL' (1016, kResRenoBtnLabel, purgeable) {
  385.     {
  386.         "Must be 1", 'DWRD';
  387.         "Off-up PICT", 'DWRD';
  388.         "On-dn PICT", 'DWRD';
  389.         "Must be 0", 'DWRD';
  390.         "Action Id", 'DLNG';
  391.         "Must be 1", 'DWRD';
  392.         "Top", 'DWRD';
  393.         "Left", 'DWRD';
  394.         "Must be 0", 'DWRD';
  395.         "Balloon indx", 'DWRD',
  396.     }
  397. };
  398.  
  399.         // ResEdit template for PreWin Button
  400.  
  401. resource 'TMPL' (1017, kResPreWinBtnLabel, purgeable) {
  402.     {
  403.         "Must be 1", 'DWRD';
  404.         "Off-up PICT", 'DWRD';
  405.         "On-dn PICT", 'DWRD';
  406.         "Dimmed PICT", 'DWRD';
  407.         "Action Id", 'DLNG';
  408.         "Must be 1", 'DWRD';
  409.         "Top", 'DWRD';
  410.         "Left", 'DWRD';
  411.         "0=fixed \n1=align", 'DWRD';
  412.         "Balloon indx", 'DWRD',
  413.     }
  414. };
  415.  
  416.                 // New RenoDB types added for 1.0a6.
  417.  
  418. resource 'TMPL' (1018, kResKeyDumpLabel, purgeable) {
  419.     {
  420.         "Res Type",        'TNAM';
  421.         "Res ID",        'DWRD';
  422.         "Unused",        'FBYT';
  423.         "Unused 7",        'BBIT';
  424.         "Unused 6",        'BBIT';
  425.         "Unused 5",        'BBIT';
  426.         "Unused 4",        'BBIT';
  427.         "Invisible",    'BBIT';
  428.         "Deleted",        'BBIT';
  429.         "Locked",        'BBIT';
  430.         "Make Unique",    'BBIT';
  431.         "Key Scope",    'TNAM';
  432.         "Key",            'PSTR';
  433.     }
  434. };
  435.  
  436.         // Template for the NEW kTopicResType
  437.  
  438. resource 'TMPL' (1019, kTopicResTypeLabel, purgeable)  {
  439.     {
  440.     "Question Specifier", 'TNAM';
  441.     "Topic Area Text", 'PSTR';
  442.     "", 'AWRD';
  443.     }
  444. };
  445.  
  446. resource 'TMPL' (1020, kQuestionResTypeLabel, purgeable)  {
  447.     {
  448.     "Unused",        'FBYT';
  449.     "Unused 7",        'BBIT';
  450.     "Unused 6",        'BBIT';
  451.     "Unused 5",        'BBIT';
  452.     "Unused 4",        'BBIT';
  453.     "Unused 3",        'BBIT';
  454.     "Unused 2",        'BBIT';
  455.     "Collapsed",    'BBIT';
  456.     "Header",        'BBIT';
  457.     "Presentation Resource ID", 'DWRD';
  458.     "Question Text", 'PSTR';
  459.     "", 'AWRD';
  460.     }
  461. };
  462.  
  463.         // Data fork of new (1.0a6) database.
  464.         // Used with Resourcerer 1.1.1
  465.  
  466. resource 'TMPL' (1021, kDataHeaderTypeLabel, purgeable) {
  467.     {
  468.         "majorRev",        'DWRD';
  469.         "minorRev",        'DWRD';
  470.         "usedPages",    'ULNG';
  471.         "freePages",    'ULNG';
  472.         "freeData",        'ULNG';
  473.         "rootNode",        'ULNG';
  474.         "keyLength",    'DWRD';
  475.         "keysPerNode",    'DWRD';
  476.         "freeNode",        'ULNG';
  477.         "endNode",        'ULNG';
  478.         "locked",        'DWRD';
  479.         "leftmost",        'ULNG';
  480.         "rightmost",    'ULNG';
  481.         "dbType",        'DWRD';
  482.         "isMixin",        'DBYT';
  483.         "momSays",        'DBYT';
  484.         "dBMenuName",    'P064';
  485.         "selector1",    'TNAM';
  486.         "value1",        'DLNG';
  487.         "selector2",    'TNAM';
  488.         "value2",        'DLNG';
  489.         "selector3",    'TNAM';
  490.         "value3",        'DLNG';
  491.         "DBScript",        'DWRD';
  492.         "DBRegion",        'DWRD';
  493.     }
  494. };
  495.  
  496.         // Database version information
  497.         // Added 29-Jan-93
  498.         // The database 'vers' resource has additional information.
  499.  
  500. resource 'TMPL' (1022, kResVersionInfoLabel, purgeable) {
  501.     {
  502.         "Oldest app seq num",    'DWRD';
  503.         "Oldest app release",    'PSTR';
  504.         "Compile date",            'PSTR';
  505.         "Compile time",            'PSTR';
  506.         "", 'AWRD';
  507.     }
  508. };
  509.         
  510.         // ResEdit template for Reno Button
  511.  
  512. resource 'TMPL' (1023, kHandlerMapResTypeLabel, purgeable) {
  513.     {
  514.         "No. Types to map", 'OCNT';
  515.         "*****", 'LSTC';
  516.             "Data Type", 'TNAM';
  517.             "Handler Type", 'TNAM';
  518.         "*****", 'LSTE'
  519.     }
  520. };
  521.  
  522.         // ResEdit template for general text with justification.
  523.         
  524. resource 'TMPL' (1024, kResSTxtAlignLabel, purgeable) {
  525.     {
  526.         "TEXT/styl Id", 'DWRD';
  527.         "Top", 'DWRD';
  528.         "Left", 'DWRD';
  529.         "Bottom", 'DWRD';
  530.         "Right", 'DWRD';
  531.         "Justify", 'DWRD';
  532.     }
  533. };
  534.  
  535.  
  536. #endif __RENODATATMPL__
  537.